import axios from '@utils/http/axios'
import { trademark } from '@api/user/model/trademark'
export  const getTrademarkApi = (page:number = 1,limit:number = 5) => {
    return axios.get<any,trademark>(`/admin/product/baseTrademark/${page}/${limit}`)
}

// 添加商品
export const getAddBrand = (tmName:string,logoUrl:string) => {
    return axios.post<any,null>('/admin/product/baseTrademark/save',{tmName,logoUrl})
}

// 删除商品
export const getDeleteBrandList = (id:number | string) => {
    return axios.delete(`/admin/product/baseTrademark/remove/${id}`)
}

// 修改数据
export  const getChangeBrandList = (tmName:string,logoUrl:string,id:number) => {
    return axios.put(`/admin/product/baseTrademark/update`,{tmName,logoUrl,id})
}